<?php


namespace app\handler;


use app\helpers\api\Response;

class ApiErrDesc
{
    /**
     * Api通用错误码
     * error_code < 1000
     */
    const SUCCESS = [1, 'Success'];
    const AUTH_ERR = [Response::HTTP_BAD_REQUEST, '权限错误'];
    const AUTH_OR_LOGIN_ERR = [Response::HTTP_BAD_REQUEST, '审核未通过或权限错误'];
    const LOGIN_ERR = [Response::HTTP_BAD_REQUEST, '请先登录'];
    const TOKEN_ERR = [Response::HTTP_BAD_REQUEST, 'token错误或者已过期'];
    const TOKEN_EMPTY = [Response::HTTP_BAD_REQUEST, '缺少access_token'];
}